/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     blastFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1000;

deltaT          1e-7;

writeControl    timeStep;

writeInterval   1;

cycleWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   12;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           0.5;

maxDeltaT       1;

// DebugSwitches
// {
//     Time 1;
//     objectRegistry 1;
// }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

functions
{
    impulse
    {
        type                impulse;
        libs                ("libblastFunctionObjects.so");

        writeControl    writeTime;
        pRef            101298;
    }
    overpressure
    {
        type                overpressure;
        libs                ("libblastFunctionObjects.so");

        writeControl    writeTime;
        store           yes;
        pRef            101298;
    }
    maxPImpulse
    {
        type                fieldMax;
        libs                ("libblastFunctionObjects.so");

        writeControl    writeTime;
        fields
        (
            overpressure
            impulse
        );
    }
};

// ************************************************************************* //
